home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / INFO / DRDOSTIP.ZIP / 1113.TXT < prev    next >
Text File  |  1992-01-02  |  24KB  |  801 lines

  1. Document 1113
  2. DR DOS Configuration files
  3. JL/RR
  4. 12/26/91
  5.  
  6. Description:
  7.  
  8. These are some sample configuration files to help you decide how
  9. best to set up your system. It is not necessary for you to use
  10. them exactly as written but they can be used to give you ideas
  11. on what can be done with DR DOS 6.0. What your computer can
  12. actually accomplish is dependent on the hardware of your system.
  13.  
  14.  
  15.         PC / XT Computers 640K (only)
  16.  
  17. CONFIG.SYS
  18.  
  19. SHELL=C:\COMMAND.COM C:\ /P /E:256
  20. BREAK=ON 
  21. BUFFERS=20
  22. FILES=30
  23. FCBS=4,4
  24. FASTOPEN=256
  25. HISTORY=ON, 256, ON, OFF, OFF
  26. ?"Load Netware (Y/N)? " set lan=on
  27. ?"Enable DelWatch TSR (Y/N)? " set delw=on
  28.  
  29. AUTOEXEC.BAT
  30.  
  31. @ECHO OFF
  32. :DRDOSBEG
  33. PATH C:\;C:\DRDOS;C:\NETWARE
  34. VERIFY OFF
  35. PROMPT [DR DOS] $P$G
  36. if "%lan%"=="on" IPX
  37. if "%lan%"=="on" NET3
  38. if "%delw%"=="on" DELWATCH C: /M:200 
  39. DISKMAP C:
  40.  
  41. These files will setup an XT-type computer to use the following
  42. DR DOS 6.0 features:
  43.  
  44. The DELWATCH command is a 5k TSR loaded to keep track of deleted
  45. files. The options indicate that Drive C: will be watched and no
  46. more than 200 deletions will be tracked.
  47.  
  48. The DISKMAP command takes a snap-shot of Drive C:'s file
  49. allocation table. In the instance of serious disk or file
  50. corruption problems this feature will aid in the recovery of
  51. your disk and files. This command, however, can be executed as
  52. many times as needed during your computing session in order to
  53. get the most recent FAT image (via the $x variable in PROMPT,
  54. see page 294 of the DR DOS manual).
  55.  
  56. Depending on the use of this type of configuration, this PC/XT
  57. could be used for other "light-duty" services on networks, et
  58. cetera, and therefore, other drivers can be implemented which
  59. would take more conventional memory such as SuperStor'ing the
  60. hard-disk for additional document storage for a printer server.
  61. SuperStor would take about 50K of conventional memory to run,
  62. and could have a serious impact on the ability to run some DOS
  63. applications. The examples for SuperStor in this document are
  64. for drives other than C:. If C: is compressed SuperStor will
  65. create a DCONFIG.SYS file on the uncompressed side and will
  66. place the SuperStor driver there. Refer to Document 1200 for
  67. more information on SuperStor.
  68.  
  69.         PC / XT Computers 640K and LIM 4.0 Expanded Memory
  70.  
  71. CONFIG.SYS
  72.  
  73. SHELL=C:\COMMAND.COM C:\ /P /E:256
  74. BREAK=ON 
  75. BUFFERS=20
  76. FILES=30
  77. FCBS=4,4
  78. FASTOPEN=256
  79. HISTORY=ON, 256, ON, OFF, OFF
  80. DEVICE-C:\REMM.SYS
  81. ?"MemoryMAX w/no LIM (y/n)? "DEVICE=C:\DRDOS\HIDOS.SYS /C=EMSALL
  82.         /B=AUTO
  83. ?"MemoryMAX w/ LIM (y/n)? "DEVICE=C:\DRDOS\HIDOS.SYS /C=EMSUMB
  84.         /B=AUTO
  85. HIDOS=ON
  86. ?"Use the Compressed Disk (Y/N)? "DEVICE=C:\SSTORDRV.SYS
  87. ?"Enable DelWatch TSR (Y/N)? " set delw=on
  88. ?"Load Netware (Y/N)? " set lan=on
  89.  
  90. AUTOEXEC.BAT
  91.  
  92. @ECHO OFF
  93. :DRDOSBEG
  94. PATH C:\;C:\DRDOS;C:\NETWARE
  95. VERIFY OFF
  96. PROMPT [DR DOS] $P$G
  97. if "%lan%"=="on" IPX
  98. if "%lan%"=="on" NET3
  99. if "%delw%"=="on" DELWATCH C: /M:200 
  100. DISKMAP C:
  101. :DRDOSEND
  102.  
  103. An XT-type computer, with LIM 4.0 expanded memory, will take
  104. advantage of the following DR DOS 6.0 features:
  105.  
  106. First, the computer's expanded memory driver is loaded (named
  107. REMM.SYS in this example). The driver supplied with your
  108. computer will probably be named something different, however,
  109. specify the use of this driver in the same location.
  110.  
  111. Second, the MemoryMAX driver HIDOS.SYS allows the operating
  112. system to relocate into Upper Memory via the /B=AUTO switch. The
  113. other switches, /CHIPSET=EMSALL or EMSUMB, allow either all the
  114. Upper Memory (128K) to be used for the operating system's
  115. purpose (but with no LIM support) or to allow an EMS page frame
  116. (LIM support) and an Upper Memory Block of 64K. The EMS memory
  117. manager and hardware must be LIM 4.0 compatible for this to
  118. properly work.
  119.  
  120. The Compressed Disk driver, SSTORDRV.SYS, could be used to
  121. access leftover disk space on another fixed disk partition.
  122.  
  123. The DELWATCH command is a 5k TSR loaded to keep track of deleted
  124. files. The options indicate that Drive C: will be watched and no
  125. more than 200 deletions will be tracked or saved. The DISKMAP
  126. command takes a snap-shot of Drive C:'s file allocation table
  127. and will further increase chances of a successful file
  128. "undeletion".
  129.  
  130.  
  131.         PC/AT or 286 based Computers with 640K and LIM 4.0
  132.         Expansion Boards
  133.  
  134. CONFIG.SYS
  135.  
  136. SHELL=C:\COMMAND.COM C:\ /P /E:256 /R
  137. BREAK=ON 
  138. BUFFERS=20
  139. FILES=30
  140. FCBS=4,4
  141. FASTOPEN=256
  142. HISTORY=ON, 256, ON, OFF, OFF
  143. device=remm.sys
  144. ?"MemoryMAX w/no LIM (y/n)? "DEVICE=C:\DRDOS\HIDOS.SYS /C=EMSALL
  145.         /B=FFFF
  146. ?"MemoryMAX w/ LIM (y/n)? "DEVICE=C:\DRDOS\HIDOS.SYS /C=EMSUMB
  147.         /B=FFFF
  148. HIDOS=ON
  149. ?"Use the Compressed Disk (Y/N)? "DEVICE=C:\SSTORDRV.SYS
  150. ?"Load Netware (Y/N)? " set lan=on
  151. ?"Enable DelWatch TSR (Y/N)? " set delw=on
  152.  
  153. AUTOEXEC.BAT
  154.  
  155. @ECHO OFF
  156. :DRDOSBEG
  157. PATH C:\;C:\DRDOS;C:\NETWARE
  158. VERIFY OFF
  159. PROMPT [DR DOS] $P$G
  160. if "%lan%"=="on" IPX
  161. if "%lan%"=="on" NET3
  162. if "%delw%"=="on" DELWATCH C: /M:200 
  163. DISKMAP C:
  164. :DRDOSEND
  165.  
  166. This basic setup is similar to an XT with 640K RAM and
  167. additional LIM 4.0 expanded memory. 
  168.  
  169. The LIM 4.0 Expansion Board will be outfitted with some amount
  170. of memory and they will come with a device driver which enables
  171. it to work and function with DOS applications. The device driver
  172. that the memory expansion board comes with could be named
  173. REMM.SYS. Please read your documentation for your memory
  174. expansion board for the location and name of the driver that
  175. enables that memory. If the driver supplied with your computer
  176. is named differently, you can still specify the use of this
  177. driver in the same location as indicated by the REMM.SYS line
  178. above.
  179.  
  180. The MemoryMAX driver HIDOS.SYS is allowing the operating system
  181. to relocate into High Memory via the /B=FFFF switch. You must be
  182. able to configure at least 64K of extended memory at FFFF
  183. (decimal 1Meg) for this option to work. Otherwise, you can use
  184. /B=AUTO.
  185.  
  186. The other switches, /CHIPSET=EMSALL or EMSUMB allow either all
  187. the Upper Memory to be used for the operating system's purpose
  188. or to allow an EMS (LIM) page frame as well as an extra portion
  189. of upper memory. As stated earlier the EMS memory manager and
  190. the LIM hardware must be LIM 4.0 to work properly.
  191.  
  192. The DELWATCH command is a 5k TSR loaded to keep track of deleted
  193. files. The options indicate that Drive C: will be watched and no
  194. more than 200 deletions will be tracked (the tracked being saved
  195. in a hidden file of the same drive). The DISKMAP command takes a
  196. snap-shot of Drive C's file allocation table.
  197.  
  198.  
  199.  
  200.         286-Based Computer with Special Chipsets and Extended
  201.         Memory
  202.  
  203. CONFIG.SYS
  204.  
  205. SHELL=C:\COMMAND.COM C:\ /P /E:256
  206. BREAK=ON 
  207. BUFFERS=20
  208. FILES=30
  209. FCBS=4,4
  210. FASTOPEN=256
  211. HISTORY=ON, 256, ON, OFF, OFF
  212. device=remm.sys
  213. ?"Load MemoryMAX (y/n)? "DEVICE=C:\DRDOS\HIDOS.SYS /B=FFFF
  214.         /C=AUTO
  215. HIDOS=ON
  216. ?"Use the Compressed Disk (Y/N)? "DEVICE=C:\SSTORDRV.SYS
  217. ?"Enable DelWatch TSR (Y/N)? " set delw=on
  218. ?"Load Netware (Y/N)? " set lan=on
  219.  
  220. AUTOEXEC.BAT
  221.  
  222. @ECHO OFF
  223. :DRDOSBEG
  224. PATH C:\;C:\DRDOS;C:\NETWARE
  225. VERIFY OFF
  226. PROMPT [DR DOS] $P$G
  227. if "%lan%"=="on" hiload IPX
  228. if "%lan%"=="on" hiload NET3
  229. if "%delw%"=="on" DELWATCH C: /M:200 
  230. DISKMAP C:
  231. :DRDOSEND
  232.  
  233. These files can be used if your 286/AT has been manufactured
  234. with special ROM chips which offer control of certain memory
  235. functions (page 418-423). These systems offer favorable upper
  236. memory support for DR DOS's MemoryMAX software to enable and use
  237. Upper Memory for TSR's and device drivers. Shadowing should be
  238. enabled in the computer's CMOS to support the creation of upper
  239. memory by DR DOS 6.0.
  240.  
  241. The important line in this example is the MemoryMAX driver
  242. HIDOS.SYS. This allows the operating system to sense the type of
  243. chipset within the 286/AT, enable Upper Memory and relocate the
  244. operating system files into Upper or High  Memory via the /B=
  245. switch. The valid switch options for /CHIPSET= are:
  246.  
  247. EMSALL
  248. or              (for 286s with LIM 4.0 compatible
  249.                 hardware/drivers)
  250. EMSUMB
  251.  
  252. NEAT            (for 286s with Chips & Technologies NEAT, NEATsx,
  253.                 LeAPSet, or LeAPSetsx)
  254.  
  255. SCAT        (for 286s with Chips & Technologies SCAT chipset)
  256.  
  257. RAM             (for permanent Upper Memory. Must be used with
  258.                 the /USE option on the HIDOS.SYS driver)
  259.  
  260. NONE        (for telling HIDOS.SYS not to use Shadow RAM)
  261.  
  262. AUTO        (for AUTO detection of chipset installed)
  263.  
  264.  
  265.         386/486 Based Computers with 1 Megabyte of RAM
  266.  
  267. CONFIG.SYS
  268.  
  269. SHELL=C:\COMMAND.COM C:\ /P /E:512
  270. BREAK=ON 
  271. HIBUFFERS=20
  272. FILES=30
  273. FCBS=4,4
  274. FASTOPEN=256
  275. HISTORY=ON, 256, ON, OFF, OFF 
  276. DEVICE=C:\DRDOS\EMM386.SYS /F=NONE /K=AUTO /B=FFFF /R=AUTO
  277. HIDOS=ON
  278. ?"Use the Compressed Disk (Y/N)? "DEVICE=C:\SSTORDRV.SYS
  279. ?"Enable DelWatch TSR (Y/N)? " set delw=on
  280. ?"Load Netware (Y/N)? " set lan=on
  281.  
  282. AUTOEXEC.BAT
  283.  
  284. @ECHO OFF
  285. :DRDOSBEG
  286. PATH C:\;C:\DRDOS;C:\NETWARE
  287. VERIFY OFF
  288. PROMPT [DR DOS] $P$G
  289. if "%lan%"=="on" hiload IPX
  290. if "%lan%"=="on" hiload NET3
  291. if "%delw%"=="on" DELWATCH C: /M:200 
  292. DISKMAP C:
  293. :DRDOSEND
  294.  
  295. This configuration will allow a 386 or 486 based computer to
  296. relocate the operating system into High Memory and enable the
  297. use of Upper Memory. With an average of 120K of RAM in Upper
  298. Memory, one can put network and other drivers, as well as TSR
  299. programs, into that 120K space by using HIDEVICE, HIINSTALL or
  300. HILOAD (for TSRs).
  301.  
  302. The SuperStor driver is useful in doubling the apparent capacity
  303. of the disk partition to which it's applied. If this has not
  304. been applied to your disk drive, you can elect not to use this
  305. driver and therefore save a substantial amount of conventional
  306. memory. Therefore, the "?" allows the driver to be loaded at
  307. will, whenever that particular partition needs to be accessed.
  308. If the driver is loaded, you can expect to achieve about 603K of
  309. conventional memory. The above example is for a drive other than
  310. C:. If C: is compressed SuperStor will create a DCONFIG.SYS file
  311. on the uncompressed side and will place the SuperStor driver
  312. there. Refer to Document 1200 for more information on SuperStor.
  313.  
  314.  
  315.         386/486 Based Computers with GREATER than 1 Megabyte
  316.         of RAM
  317.  
  318. CONFIG.SYS
  319.  
  320. SHELL=C:\COMMAND.COM C:\ /P /E:512
  321. BREAK=ON 
  322. HIBUFFERS=20
  323. FILES=30
  324. FCBS=4,4
  325. FASTOPEN=256
  326. HISTORY=ON, 256, ON, OFF, OFF
  327. HIDOS=ON
  328. DEVICE=C:\DRDOS\EMM386.SYS /F=NONE /K=AUTO /B=FFFF /R=AUTO
  329. ?"Use the Compressed Disk (Y/N)? "DEVICE=C:\SSTORDRV.SYS
  330. ?"Enable DelWatch TSR (Y/N)? " set delw=on
  331. ?"Load Netware (Y/N)? " set lan=on
  332.  
  333. AUTOEXEC.BAT
  334.  
  335. @ECHO OFF
  336. :DRDOSBEG
  337. PATH C:\;C:\DRDOS;C:\NETWARE
  338. VERIFY OFF
  339. PROMPT [DR DOS] $P$G
  340. if "%lan%"=="on" hiload IPX
  341. if "%lan%"=="on" hiload NET3
  342. if "%delw%"=="on" DELWATCH C: /M:200 
  343. DISKMAP C:
  344. :DRDOSEND
  345.  
  346. This configuration will allow a 386 or 486 based computer to
  347. relocate the operating system into High Memory. With an average
  348. of 120K of RAM in Upper Memory, a portion of the SuperStor
  349. driver, the IPX and possibly the NET3 (or NETX) software will
  350. also fit into Upper Memory.
  351.  
  352. The SuperStor driver is useful in doubling the apparent capacity
  353. of the disk partition to which it's applied. If this has not
  354. been applied to your main disk drive, you can elect not to use
  355. this driver and therefore save a substantial amount of
  356. conventional memory. Therefore, the "?" allows the driver to be
  357. loaded at will, whenever that particular partition needs to be
  358. accessed. The above examples have been for drives other than C:.
  359. If C: is compressed SuperStor will create a DCONFIG.SYS file on
  360. the uncompressed side and will place the SuperStor driver there.
  361. Refer to Document 1200.
  362.  
  363.  
  364.         386/486 Based Computers with greater than 1 Megabyte of
  365.         RAM running TaskMAX
  366.  
  367. CONFIG.SYS
  368.  
  369. SHELL=C:\COMMAND.COM C:\ /P /E:512
  370. BREAK=ON 
  371. HIBUFFERS=20
  372. FILES=30
  373. FCBS=4,4
  374. FASTOPEN=256
  375. HISTORY=ON, 256, ON, OFF, OFF
  376. HIDOS=ON
  377. DEVICE=C:\DRDOS\EMM386.SYS /F=NONE /K=AUTO /B=AUTO /R=AUTO
  378. ?"Use the TaskMAX task switcher (Y/N)? " set tasker=on
  379. ?"Enable DelWatch TSR (Y/N)? " set delw=on
  380. ?"Load Netware (Y/N)? " set lan=on
  381.  
  382. AUTOEXEC.BAT
  383.  
  384. @ECHO OFF
  385. :DRDOSBEG
  386. PATH C:\;C:\DRDOS;C:\NETWARE
  387. VERIFY OFF
  388. PROMPT [DR DOS] $P$G
  389. if "%lan%"=="on" hiload IPX
  390. if "%lan%"=="on" hiload NETX
  391. if "%tasker%"=="on" share
  392. if "%tasker%"=="on" taskmax
  393. if "%delw%"=="on" DELWATCH C: /M:200 
  394. DISKMAP C:
  395. :DRDOSEND
  396.  
  397. This minimal configuration will allow a 386 or 486 based
  398. computer to relocate the operating system into Upper Memory.
  399. Although this is not optimal for the EMM386.SYS driver, the
  400. amount of memory available on most 386/486 computers will allow
  401. the Upper Memory to be addressed and used for the relocation of
  402. the operating system files, drivers or TSR's. With an average of
  403. 120K of RAM in UPPER Memory, the operating system will be able
  404. to get SHARE into HMA, TaskMAX and the Netware drivers into
  405. UPPER Memory. Before Netware is loaded you should be able to
  406. have 625K available conventional memory. Alternately, you can
  407. load the drivers in the AUTOEXEC file from the command line (eg.
  408. SHARE, TASKMAX, HILOAD IPX and HILOAD NETX). 
  409.  
  410. The NETX utility found on the last DR DOS 6.0 floppy disk is
  411. included to allow you to task-switch on the Network. This will
  412. not allow multiple logins. However, it is designed to allow you
  413. to execute more than one on application on the network.
  414.  
  415.  
  416.         WINDOWS Enhanced mode Configuration for 386/486 Based
  417.         Computers 4 Megabytes or better
  418.  
  419. CONFIG.SYS
  420.  
  421. SHELL=C:\COMMAND.COM C:\ /P /E:512
  422. BREAK=ON 
  423. HIBUFFERS=8
  424. FILES=30
  425. FCBS=4,4
  426. FASTOPEN=0
  427. HISTORY=ON, 256, ON, OFF, OFF
  428. HIDOS=ON
  429. DEVICE=C:\DRDOS\EMM386.SYS /F=NONE /K=AUTO /B=FFFF /R=AUTO
  430. DEVICE=C:\DRDOS\PCKWIN.SYS
  431. ?"Load Netware (Y/N)? " set lan=on
  432. ?"Enable DelWatch TSR (Y/N)? " set delw=on
  433.  
  434. AUTOEXEC.BAT
  435.  
  436. @ECHO OFF
  437. :DRDOSBEG
  438. PATH C:\;C:\DRDOS;C:\NETWARE;C;\WINDOWS
  439. VERIFY OFF
  440. PROMPT [DR DOS] $P$G
  441. if "%lan%"=="on" hiload IPX
  442. if "%lan%"=="on" hiload NET3
  443. SUPERPCK /EM /S:2048
  444. if "%delw%"=="on" DELWATCH C: /M:200 
  445. DISKMAP C:
  446. :DRDOSEND
  447.  
  448. This basic configuration allows a 386 or 486 based computer to
  449. run WINDOWS  in the "enhanced mode" or "real mode". The
  450. EMM386.SYS driver indicates that a LIM page-frame location is
  451. being established by the operating system driver (/F=AUTO). The
  452. amount of memory allocated to be converted to expanded memory is
  453. 1024K (/K=1024). The operating system is being relocated to HMA
  454. (/B=FFFF) and the information in the video and system BIOS ROMs
  455. are being "shadowed" to faster RAM (/R=AUTO).If you want more
  456. upper memory you can disable the LIM Page Frame with the
  457. parameter /F=NONE. This will give you an additional 64K of upper
  458. memory but you will not have any EMS. SuperPCKwik is going to be
  459. 2 Megabytes insize (/S:2048) and use the extended memory (/EM)
  460. set aside with the EMM386.SYS driver. It will lend approximately
  461. half of its memory for use as XMS memory for WINDOWS. SuperPCK
  462. is using the WINDOWS compatible portion of its driver
  463. (PCKWIN.SYS) so that WINDOWS performance is enhanced because of
  464. better disk performance. With the EMM386.SYS driver, an average
  465. of 120K of RAM may be available to relocate network drivers,
  466. TSRs and other drivers into Upper Memory. This configuration
  467. has been able to provide 625K of Conventional Memory before
  468. WINDOWS is loaded.
  469.  
  470.  
  471.         WINDOWS Standard mode Configuration for 386/486 Based
  472.         Computers with more than 2 Megabytes
  473.  
  474. CONFIG.SYS
  475.  
  476. SHELL=C:\COMMAND.COM C:\ /P /E:512
  477. BREAK=ON 
  478. HIBUFFERS=20
  479. FILES=30
  480. FCBS=4,4
  481. FASTOPEN=256
  482. HISTORY=ON, 256, ON, OFF, OFF
  483. HIDOS=ON
  484. DEVICE=C:\DRDOS\EMM386.SYS /F=NONE /B=FFFF /R=AUTO /WINSTD
  485. DEVICE=C:\DRDOS\PCKWIN.SYS
  486. ?"Load Netware (Y/N)? " set lan=on
  487. ?"Enable DelWatch TSR (Y/N)? " set delw=on
  488.  
  489. AUTOEXEC.BAT
  490.  
  491. @ECHO OFF
  492. :DRDOSBEG
  493. PATH C:\;C:\DRDOS;C:\NETWARE;C;\WINDOWS
  494. VERIFY OFF
  495. PROMPT [DR DOS] $P$G
  496. if "%lan%"=="on" hiload IPX
  497. if "%lan%"=="on" hiload NET3
  498. SUPERPCK /EM
  499. if "%delw%"=="on" DELWATCH C: /M:200 
  500. DISKMAP C:
  501. :DRDOSEND
  502.  
  503.  
  504. This basic configuration allows a 386 or 486 based computer to
  505. run WINDOWS in  the "Standard mode" or "real mode". The
  506. EMM386.SYS driver indicates that NO LIM page-frame be
  507. established by the driver (/F=NONE), the operating system is
  508. being relocated to HMA (/B=FFFF) and the information in the
  509. video and system BIOS ROMs are being "shadowed" to faster RAM.
  510. SuperPCKwik is going to use all of the extended memory enabled
  511. by EMM386.SYS for caching the disk drive. Half of this amount
  512. will be "lent" to Windows. SuperPCK is using the WINDOWS
  513. compatible portion of its driver so that WINDOWS performance is
  514. enhanced because of better disk performance. This configuration
  515. has been able to provide 625K of Conventional Memory before
  516. WINDOWS is loaded.
  517.  
  518.  
  519.         Windows Enhanced mode Configuration for 386/486 with
  520.         2 Megabytes
  521.  
  522. CONFIG.SYS
  523.  
  524. SHELL=C:\COMMAND.COM C:\ /P /E:512 /MU
  525. BREAK=ON 
  526. BUFFERS=20
  527. FILES=30
  528. FCBS=4,4
  529. FASTOPEN=256
  530. HISTORY=ON, 256, ON, OFF, OFF
  531. HIDOS=ON
  532. DEVICE=C:\DRDOS\EMM386.SYS /F=NONE /B=AUTO /R=NONE
  533. ?"Load Netware (Y/N)? " set lan=on
  534. ?"Enable DelWatch TSR (Y/N)? " set delw=on
  535.  
  536. AUTOEXEC.BAT
  537.  
  538. @ECHO OFF
  539. :DRDOSBEG
  540. PATH C:\;C:\DRDOS;C:\NETWARE;C;\WINDOWS
  541. VERIFY OFF
  542. PROMPT [DR DOS] $P$G
  543. if "%lan%"=="on" hiload IPX
  544. if "%lan%"=="on" hiload NET3
  545. if "%delw%"=="on" DELWATCH C: /M:200
  546. DISKMAP C:
  547. :DRDOSEND
  548.  
  549. A 2 megabyte computer is not the optimal system for Windows in
  550. enhanced mode. System performance may be greatly reduced because
  551. Windows will need to use swap files and no cache can be used to
  552. help accelerate disk I/O.
  553.  
  554. This configuration will allow a 386/486 with 2 Megabytes to run
  555. Windows in Enhanced mode. Because Windows requires a minimum of
  556. 1 Megabyte of XMS this configuration does not use the HMA. The
  557. SHELL statement has the switch /MU to force it to upper memory.
  558. EMM386 is loading the kernel into upper memory with /B=AUTO and
  559. we use BUFFERS (upper) instead of HIBUFFERS (HMA). Finally,
  560. because we need all of the XMS memory available SuperPCK is not
  561. used in this configuration. Start Windows with "WIN /3".
  562. HIDOS.SYS can also be used to replace EMM386.SYS.
  563.  
  564.                 ******************************
  565.  
  566. MODELS OF CONFIGURATION FILES
  567.  
  568. The following configuration ideas should be considered advanced
  569. and for those who are interested in more sophisticated
  570. organization of their configuration  and autoexec files.
  571.  
  572. Only the basic ideas are outlined in each example. The rest of
  573. the file can be  filled in with your own specifications.
  574.  
  575. EXAMPLE 1 - The use of GOTO in the CONFIG file.
  576.  
  577. ?"Do you want to run QEMM (y/n)? " goto QEMM
  578. ?"Do you want to run MemoryMAX (y/n)? " goto DRDOS
  579.  
  580. :QEMM
  581. DEVICE=c:\QTR_DECK\QEMM386.SYS
  582. DEVICE=C:\DRDOS\HIDOS.SYS /B=FFFF
  583. (additional QEMM driver lines go here...)
  584. goto COMMON
  585.  
  586. :DRDOS
  587. hidos=on
  588. DEVICE=C:\DRDOS\EMM386.SYS /F=AUTO...
  589. ....
  590.  
  591. :COMMON
  592. files=40
  593. hibuffers=20
  594. ...
  595.  
  596.  
  597. EXAMPLE 2 - The use of CHAIN in the CONFIG file. This example
  598. shows that you can "link" to other files that hold your
  599. configurations for each system "setup". In the following
  600. CONFIG.SYS file, the two lines direct the configuration process
  601. to the files: QCONFIG and MCONFIG.SYS-files. The appropriate
  602. FILES, BUFFERS, etc. information is contained within those files
  603. and not the main CONFIG.SYS file.
  604.  
  605. ?"Do you want to run QEMM (y/n)? " chain=QCONFIG.SYS
  606. ?"Do you want to run MemoryMAX (y/n)? " chain=MCONFIG.SYS
  607.  
  608.  
  609. EXAMPLE 3 - The following CONFIG file demonstrates the use of
  610. SWITCH/RETURN commands and use of labels. Select the option by
  611. number and continue processing. Notice the use of the ECHO
  612. statement for setting up the menu options.
  613.  
  614. ECHO =        Choose how much Extended Memory you want to convert
  615. ECHO =             to LIM Memory for this session. 
  616. ECHO =
  617. ECHO =          1 (or ENTER)    No LIM Memory
  618. ECHO =         2        512K of Memory
  619. ECHO =        3        1024K of Memory
  620. ECHO =        4         2048K of Memory
  621. ECHO =
  622. ECHO =        Make your selection...
  623.  
  624. SWITCH NOLIM, 512K, 1024K, 2048K
  625. GOTO DEFAULTS
  626.  
  627. :NOLIM
  628. DEVICE=C:\DRDOS\EMM386.SYS /F=NONE /K=AUTO /B=FFFF /R=AUTO
  629. RETURN
  630.  
  631. :512K
  632. DEVICE=C:\DRDOS\EMM386.SYS /F=AUTO /K=512 /B=FFFF /R=AUTO
  633. RETURN
  634.  
  635. :1024K
  636. DEVICE=C:\DRDOS\EMM386.SYS /F=AUTO /K=1024 /B=FFFF /R=AUTO
  637. RETURN
  638.  
  639. :2048K
  640. DEVICE=C:\DRDOS\EMM386.SYS /F=AUTO /K=2048 /B=FFFF /R=AUTO
  641. RETURN
  642.  
  643. :DEFAULTS
  644. SHELL=C:\COMMAND.COM \C: /P /E:512
  645. HIDOS=ON
  646. HIBUFFERS=20
  647. FILES=30
  648. etc...
  649.  
  650.  
  651. EXAMPLE 4 - The following CONFIG file section shows how
  652. "environment variables" can be set according to the
  653. configuration options one chooses. These variables are passed to
  654. the command processor (COMMAND.COM) where they can be tested and
  655. processed through the AUTOEXEC.BAT or other batch files. The
  656. CLS, CPOS, EXIT and SET commands are featured in this example.
  657.  
  658. :DEFAULTS
  659. SHELL=C:\COMMAND.COM \C: /P /E:512
  660. HIDOS=ON
  661. HIBUFFERS=20
  662. FILES=30
  663. etc....
  664.  
  665. ECHO =        Choose which TSRs and Utilities you want loaded 
  666. ECHO =              at BOOT time for this session. 
  667. ECHO =
  668. ECHO =        1 (or ENTER)       None... just continue
  669. ECHO =         2               Mouse & Cursor Drivers
  670. ECHO =        3                Keyboard "Speeder"
  671. ECHO =        4               Novell Network
  672. ECHO =        5                  Done with selections
  673. ECHO =
  674. ECHO =        Make your selection...
  675.  
  676. :MORE
  677. CPOS 10,33
  678. SWITCH NOTHING, CURSMOUS, SPEEDKEY, NOVELL, DONE
  679. GOTO MORE
  680.  
  681. :DONE
  682. :NOTHING
  683. CLS
  684. EXIT
  685.  
  686. :CURSMOUS
  687. SET THINGS=ON
  688. RETURN
  689.  
  690. :SPEEDKEY
  691. SET SPEEDKEY=ON
  692. RETURN
  693.  
  694. :NOVELL
  695. SET NETWORK=ON
  696. RETURN
  697.  
  698. The accompanying AUTOEXEC below picks up the environment
  699. variables.
  700.  
  701. The AUTOEXEC.BAT file now allows testing of the environment
  702. variables and executes commands based upon the conditionals as
  703. illustrated below:
  704.  
  705. @ECHO OFF
  706. :drdosbeg
  707. VERIFY OFF
  708. PATH C:\;C:\DRDOS;C:\BATS;C:\TOOLS;C:\WINDOWS
  709. if "%ansi%"=="on" prompt $e[s$e[0;70H$e[1;36m$t$e[u$e[1;36mDR
  710.         DOS6$p$g$e[2;32m
  711. if "%ansi%"=="off" PROMPT [DR DOS] $P$G
  712. SET TEMP=C:\TEMP
  713. IF NOT "%TEMP%"=="" MD %TEMP% >NUL
  714. if "%things%"=="on" HILOAD MOUSE
  715. if "%things%"=="on" HILOAD CURSOR /s10
  716. if "%speedkey%"=="on" c:\drdos\mode con:rate=30 delay=1
  717. if "%network%"=="on" hiload c:\lan\ipx
  718. if "%network%"=="on" hiload c:\lan\net3
  719. :drdosend
  720.  
  721.  
  722. OTHER EXAMPLES
  723.  
  724. Select different configuration options from the CONFIG.SYS file
  725. using the ?
  726.  
  727. ?SHELL=C:\COMMAND.COM C:\ /P /E:512
  728. ?SHELL=C:\COMMAND.COM C:\ /P /E:1024
  729. ?BREAK=OFF
  730. ?BREAK=ON
  731. BUFFERS=20
  732. FILES=20
  733. ?HISTORY=ON, 256, ON, OFF, OFF
  734. ?DEVICE=C:\DRDOS\ANSI.SYS
  735.  
  736. Select different AUTOEXEC.BAT's from CONFIG.SYS using the ?
  737.  
  738. ?"Default Autoexec? (y/n) "SHELL=C:\COMMAND.COM C:\ /P /E:256
  739. ?"Alternate Autoexec? (y/n) "SHELL=C:\COMMAND.COM C:\
  740.         /P:ALTERNAT.BAT /E:256
  741.  
  742. Select and use different configuration files from CONFIG.SYS at
  743. bootup.
  744.  
  745. ?"Do you want to run Windows? (y/n) " chain = WCONFIG.SYS
  746. ?"Do you want to use QEMM? (y/n) " chain = QCONFIG.SYS
  747. ?"Do you want to use MemoryMAX? (y/n) chain = MCONFIG.SYS
  748. ?"Do you want to use 386MAX? (y/n) chain = 386CONF.SYS
  749.  
  750. (Each line is printed on the screen and you are asked to
  751. load/run the chained configuration file. Each configuration file
  752. is a complete CONFIG.SYS-like file complete with all appropriate
  753. options.)
  754.  
  755. The idea above can be accomplished by making number-selectable
  756. "menu" choices using SWITCH. Note how the "SET environment"
  757. variables can be used and tested for different "autoexec.bat"
  758. files in this example:
  759.  
  760. ECHO =    1  For Windows Configuration
  761. ECHO =    2  For QEMM Configuration
  762. ECHO =    3  For DR DOS' MemoryMAX Configuration
  763. ECHO =    4  For 386MAX Configuration
  764. ECHO =    5  For no Configuration... just exit
  765. SWITCH win, qemm, memm, 386m, none
  766. :none
  767.  
  768. set autoexec=norm
  769. exit
  770.  
  771. :win
  772. set autoexec=win
  773. chain=wconfig.sys
  774.  
  775. :qemm
  776. set autoexec=qemm
  777. chain=qconfig.sys
  778.  
  779. :memm
  780. set autoexec=memm
  781. chain=mconfig.sys
  782.  
  783. :386m
  784. set autoexec=386m
  785. chain=386conf.sys
  786.  
  787. Autoexec.bat for the above
  788.  
  789. @echo off
  790. PATH C:\DRDOS;C:\;C:\UTIL;
  791. VERIFY OFF
  792. PROMPT $P$G
  793. DISKMAP C: D: 
  794. IF "%autoexec%"=="norm" goto DRDOSEXIT
  795. SHARE /L:40
  796. IF "%autoexec%"=="win" SUPERPCK /EM /L:2048
  797. IF "%autoexec%"=="qemm" CALL QEMM.BAT
  798. IF "%autoexec%"=="memm" SUPERPCK  /A /L:2048
  799. IF "%autoexec%"=="386m" CALL 386.BAT
  800. :DRDOSEXIT
  801.